<section id="widget-grid" class="">
<!--  
	<div class="alert alert-danger fade in" ng-show="showErrorMessages()">
		<button class="close" ng-click="clearErrorMessages()">×</button>
		<i class="fa-fw fa fa-times"></i> <strong>出错了!</strong>
		{{errorMessage}}.
	</div>
-->
	<div class="row">
		<article class="col-sm-12 col-md-12">
			<div class="jarviswidget jarviswidget" id="wid-id-4">
				<header>
					<span class="widget-icon"> <i class="fa fa-edit"></i>
					</span>
					<h2>账户安全</h2>
				</header>

				<div>
					<div class="widget-body no-padding">
						<form name="resetPasswordForm" id="smart-form-reset-password"
							class="smart-form" ng-submit="resetPassword(passwordInfo)" novalidate>
							<header> 密码重置 </header>

							<fieldset>
								<div class="row">
									<section class="col col-6">
										<label class="label col col-2">新密码 ：</label>
										<div class="col col-10">
											<label class="input"
												ng-class="getValidationClass(resetPasswordForm.changedPassword)">
												<i class="icon-append fa fa-lock"></i> <input
												type="password" name="changedPassword" ng-model="passwordInfo.changedPassword"
												placeholder="用户登录密码，由字母数字组成" id="changedPassword" required
												password-validate>
											</label>
											<div class="error">
												<em class="invalid"
													ng-show="isValidatedOf(resetPasswordForm.changedPassword, 'pwd')">
													密码由6到12个字符组成，包含至少一个数字和字母！ </em>
											</div>
										</div>
									</section>
								</div>
								<div class="row">
									<section class="col col-6">
										<label class="label col col-2">确认密码 ：</label>
										<div class="col col-10">
											<label class="input"
												ng-class="getValidationClass(resetPasswordForm.confirmChangedPassword)">
												<i class="icon-append fa fa-lock"></i> <input
												type="password" name="confirmChangedPassword" ng-model="passwordInfo.confirmChangedPassword"
												placeholder="再次输入新密码" id="confirmChangedPassword" required
												password-match="passwordInfo.changedPassword">
											</label>
											<div class="error">
												<em class="invalid"
													ng-show="isValidatedOf(resetPasswordForm.confirmChangedPassword, 'matched')">
													确认密码不匹配！ </em>
											</div>
										</div>
									</section>
								</div>
							</fieldset>

							<footer>
								<button onclick="window.history.back();" class="btn btn-default"
									type="button">Back</button>
								<button type="submit" ng-disabled="resetPasswordForm.$invalid"
									class="btn btn-primary">保存</button>
							</footer>
						</form>
					</div>
				</div>
			</div>
		</article>
	</div>
</section>
